//
//  NSSortDescriptor+WCExtensions.m
//  WabbitCode
//
//  Created by William Towe on 2/3/09.
//  Copyright 2009 Revolution Software. All rights reserved.
//

#import "NSSortDescriptor+WCExtensions.h"


NSString *kDictionaryFromSortDescriptorKeyKey = @"key";
NSString *kDictionaryFromSortDescriptorSelectorKey = @"selector";
NSString *kDictionaryFromSortDescriptorAscendingKey = @"ascending";

@implementation NSSortDescriptor (WCExtensions)
- (NSDictionary *)dictionaryFromSortDescriptor; {
	return [NSDictionary dictionaryWithObjectsAndKeys:[self key], kDictionaryFromSortDescriptorKeyKey, NSStringFromSelector([self selector]), kDictionaryFromSortDescriptorSelectorKey, [NSNumber numberWithBool:[self ascending]], kDictionaryFromSortDescriptorAscendingKey, nil];
}
@end
